import request from '@/utils/request'
//获取礼品详细信息
export function getGiftDetails(data) { 
    return request({
        url: '/Purchase_gift/gift_info',
        method: 'post',
        data: data
    })
} 
//获取爪型
export function get_clawtype() { 
    return request({
        url: '/Gift/get_type',
        method: 'post',
        data: ''  
    })
} 
//获取类别
export function get_type(data) {
    return request({
        url: '/Gift_type/index',
        method: 'post',
        data: data
    })
}
// 获取供应商信息 ···
export function getSupplier(data) {

    return request({
        url: '/Ims_supplier/get_supplier',
        method: 'post',
        data: data
    })
}
// 获取对接人信息 ···
export function getOperations(data) {
    return request({
        url: '/Operations_docking_people/docking_list/-1',
        method: 'post',
        data: ''
    })
}
// 获取门店 ···
export function store(data) {
    return request({
        url: "/General/get_store",
        method: "post",
        data: data
    })
}
// 获取仓库
export function house(data) {
    return request({
        url: "/Stock_check/get_channel",
        method: "post",
        data
    })
}

// 信息分页 ···
export function getPage(data) {
    return request({
        url: '/Purchase_gift/gift_page',
        method: 'post',
        data: data
    })
}

// 信息列表 ···
export function getList(data, page) {
    return request({
        url: '/Purchase_gift/gift_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}
// 购物车添加 ···
export function addcar_submit(data) {
    return request({
        url: '/Purchase_gift/add_gift_cars',
        method: 'post',
        data: data
    })
}
// 购物车种类 ···
export function car(data) {
    return request({
        url: '/Purchase_gift/get_gift_cars_list',
        method: 'post',
        data: data
    })
}
// 获取门店
export function getHouse(data) {
    return request({
        url: '/General/get_house',
        method: 'post',
        data: data
    })
}
// 获取门店仓库
export function getWarehouse(data) {
    return request({
        url: '/stock_check/get_channel',
        method: 'post',
        data: data
    })
}
export function getHouseInfo(data) {
    return request({
        url: '/House/info',
        method: 'post',
        data: data
    })
}
export function delGift(data) {
    return request({
        url: '/Purchase_gift/gift_cars_delete',
        method: 'post',
        data: data
    })
}
export function delCarList(data) {
    return request({
        url: '/Purchase_gift/clear_gift_cars_list',
        method: 'post',
        data: data
    })
}
// 提交订单
export function save(data) {
    return request({
        url: '/Purchase_gift/create_gift_order',
        method: 'post',
        data: data
    })
}
// 获取省市区
export function get_district(data) {
    return request({
        url: '/store/get_district',
        method: 'post',
        data: data
    })
}

